(function(){
	if(!window.cell) window.cell={};
	if(!window.cell.string) window.cell.string={};
	if(!window.$string) window.$string = cell.string = function(uri) {
		if ( window == this || !this.init ){
			return new cell.string(uri);
		}
		return this.init(uri);
	}
	cell.string.fn = cell.string.prototype = {
		version:"2.0.0",
		svcString:Components.classes["@mozilla.org/intl/stringbundle;1"].getService(Components.interfaces.nsIStringBundleService),
		init:function(uri){
			this.root=this.svcString.createBundle(uri);
		},
		get:function(key,arg){
			var str=this.root.GetStringFromName(key);
			if(arg != undefined){
				for (var val in arg){
					str=str.replace(val,arg[val])
				}
			}
			return str;
		},
	}
})();